Termination w.r.t. Q of the following Term Rewriting System could be proven:

Q restricted rewrite system:
The TRS R consists of the following rules:

app(app(mapbt, f), app(leaf, x)) → app(leaf, app(f, x))
app(app(mapbt, f), app(app(app(branch, x), l), r)) → app(app(app(branch, app(f, x)), app(app(mapbt, f), l)), app(app(mapbt, f), r))

Q is empty.


QTRS
  ↳ Overlay + Local Confluence

Q restricted rewrite system:
The TRS R consists of the following rules:

app(app(mapbt, f), app(leaf, x)) → app(leaf, app(f, x))
app(app(mapbt, f), app(app(app(branch, x), l), r)) → app(app(app(branch, app(f, x)), app(app(mapbt, f), l)), app(app(mapbt, f), r))

Q is empty.

The TRS is overlay and locally confluent. By [15] we can switch to innermost.

↳ QTRS
  ↳ Overlay + Local Confluence
QTRS
      ↳ DependencyPairsProof

Q restricted rewrite system:
The TRS R consists of the following rules:

app(app(mapbt, f), app(leaf, x)) → app(leaf, app(f, x))
app(app(mapbt, f), app(app(app(branch, x), l), r)) → app(app(app(branch, app(f, x)), app(app(mapbt, f), l)), app(app(mapbt, f), r))

The set Q consists of the following terms:

app(app(mapbt, x0), app(leaf, x1))
app(app(mapbt, x0), app(app(app(branch, x1), x2), x3))


Using Dependency Pairs [1,13] we result in the following initial DP problem:
Q DP problem:
The TRS P consists of the following rules:

APP(app(mapbt, f), app(app(app(branch, x), l), r)) → APP(app(mapbt, f), r)
APP(app(mapbt, f), app(app(app(branch, x), l), r)) → APP(app(mapbt, f), l)
APP(app(mapbt, f), app(leaf, x)) → APP(f, x)
APP(app(mapbt, f), app(app(app(branch, x), l), r)) → APP(app(branch, app(f, x)), app(app(mapbt, f), l))
APP(app(mapbt, f), app(app(app(branch, x), l), r)) → APP(app(app(branch, app(f, x)), app(app(mapbt, f), l)), app(app(mapbt, f), r))
APP(app(mapbt, f), app(app(app(branch, x), l), r)) → APP(branch, app(f, x))
APP(app(mapbt, f), app(app(app(branch, x), l), r)) → APP(f, x)
APP(app(mapbt, f), app(leaf, x)) → APP(leaf, app(f, x))

The TRS R consists of the following rules:

app(app(mapbt, f), app(leaf, x)) → app(leaf, app(f, x))
app(app(mapbt, f), app(app(app(branch, x), l), r)) → app(app(app(branch, app(f, x)), app(app(mapbt, f), l)), app(app(mapbt, f), r))

The set Q consists of the following terms:

app(app(mapbt, x0), app(leaf, x1))
app(app(mapbt, x0), app(app(app(branch, x1), x2), x3))

We have to consider all minimal (P,Q,R)-chains.

↳ QTRS
  ↳ Overlay + Local Confluence
    ↳ QTRS
      ↳ DependencyPairsProof
QDP
          ↳ EdgeDeletionProof

Q DP problem:
The TRS P consists of the following rules:

APP(app(mapbt, f), app(app(app(branch, x), l), r)) → APP(app(mapbt, f), r)
APP(app(mapbt, f), app(app(app(branch, x), l), r)) → APP(app(mapbt, f), l)
APP(app(mapbt, f), app(leaf, x)) → APP(f, x)
APP(app(mapbt, f), app(app(app(branch, x), l), r)) → APP(app(branch, app(f, x)), app(app(mapbt, f), l))
APP(app(mapbt, f), app(app(app(branch, x), l), r)) → APP(app(app(branch, app(f, x)), app(app(mapbt, f), l)), app(app(mapbt, f), r))
APP(app(mapbt, f), app(app(app(branch, x), l), r)) → APP(branch, app(f, x))
APP(app(mapbt, f), app(app(app(branch, x), l), r)) → APP(f, x)
APP(app(mapbt, f), app(leaf, x)) → APP(leaf, app(f, x))

The TRS R consists of the following rules:

app(app(mapbt, f), app(leaf, x)) → app(leaf, app(f, x))
app(app(mapbt, f), app(app(app(branch, x), l), r)) → app(app(app(branch, app(f, x)), app(app(mapbt, f), l)), app(app(mapbt, f), r))

The set Q consists of the following terms:

app(app(mapbt, x0), app(leaf, x1))
app(app(mapbt, x0), app(app(app(branch, x1), x2), x3))

We have to consider all minimal (P,Q,R)-chains.
We deleted some edges using various graph approximations

↳ QTRS
  ↳ Overlay + Local Confluence
    ↳ QTRS
      ↳ DependencyPairsProof
        ↳ QDP
          ↳ EdgeDeletionProof
QDP
              ↳ DependencyGraphProof

Q DP problem:
The TRS P consists of the following rules:

APP(app(mapbt, f), app(leaf, x)) → APP(f, x)
APP(app(mapbt, f), app(app(app(branch, x), l), r)) → APP(app(mapbt, f), l)
APP(app(mapbt, f), app(app(app(branch, x), l), r)) → APP(app(mapbt, f), r)
APP(app(mapbt, f), app(app(app(branch, x), l), r)) → APP(app(branch, app(f, x)), app(app(mapbt, f), l))
APP(app(mapbt, f), app(app(app(branch, x), l), r)) → APP(app(app(branch, app(f, x)), app(app(mapbt, f), l)), app(app(mapbt, f), r))
APP(app(mapbt, f), app(app(app(branch, x), l), r)) → APP(branch, app(f, x))
APP(app(mapbt, f), app(app(app(branch, x), l), r)) → APP(f, x)
APP(app(mapbt, f), app(leaf, x)) → APP(leaf, app(f, x))

The TRS R consists of the following rules:

app(app(mapbt, f), app(leaf, x)) → app(leaf, app(f, x))
app(app(mapbt, f), app(app(app(branch, x), l), r)) → app(app(app(branch, app(f, x)), app(app(mapbt, f), l)), app(app(mapbt, f), r))

The set Q consists of the following terms:

app(app(mapbt, x0), app(leaf, x1))
app(app(mapbt, x0), app(app(app(branch, x1), x2), x3))

We have to consider all minimal (P,Q,R)-chains.
The approximation of the Dependency Graph [13,14,18] contains 1 SCC with 4 less nodes.

↳ QTRS
  ↳ Overlay + Local Confluence
    ↳ QTRS
      ↳ DependencyPairsProof
        ↳ QDP
          ↳ EdgeDeletionProof
            ↳ QDP
              ↳ DependencyGraphProof
QDP
                  ↳ QDPOrderProof

Q DP problem:
The TRS P consists of the following rules:

APP(app(mapbt, f), app(app(app(branch, x), l), r)) → APP(app(mapbt, f), r)
APP(app(mapbt, f), app(app(app(branch, x), l), r)) → APP(app(mapbt, f), l)
APP(app(mapbt, f), app(leaf, x)) → APP(f, x)
APP(app(mapbt, f), app(app(app(branch, x), l), r)) → APP(f, x)

The TRS R consists of the following rules:

app(app(mapbt, f), app(leaf, x)) → app(leaf, app(f, x))
app(app(mapbt, f), app(app(app(branch, x), l), r)) → app(app(app(branch, app(f, x)), app(app(mapbt, f), l)), app(app(mapbt, f), r))

The set Q consists of the following terms:

app(app(mapbt, x0), app(leaf, x1))
app(app(mapbt, x0), app(app(app(branch, x1), x2), x3))

We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [13].


The following pairs can be oriented strictly and are deleted.


APP(app(mapbt, f), app(leaf, x)) → APP(f, x)
APP(app(mapbt, f), app(app(app(branch, x), l), r)) → APP(f, x)
The remaining pairs can at least be oriented weakly.

APP(app(mapbt, f), app(app(app(branch, x), l), r)) → APP(app(mapbt, f), r)
APP(app(mapbt, f), app(app(app(branch, x), l), r)) → APP(app(mapbt, f), l)
Used ordering: Combined order from the following AFS and order.
APP(x1, x2)  =  APP(x1)
app(x1, x2)  =  app(x1, x2)
mapbt  =  mapbt
branch  =  branch
leaf  =  leaf

Lexicographic path order with status [19].
Precedence:
mapbt > APP1 > app2
branch > app2
leaf > APP1 > app2

Status:
APP1: [1]
leaf: multiset
app2: [1,2]
mapbt: multiset
branch: multiset

The following usable rules [14] were oriented: none



↳ QTRS
  ↳ Overlay + Local Confluence
    ↳ QTRS
      ↳ DependencyPairsProof
        ↳ QDP
          ↳ EdgeDeletionProof
            ↳ QDP
              ↳ DependencyGraphProof
                ↳ QDP
                  ↳ QDPOrderProof
QDP
                      ↳ QDPOrderProof

Q DP problem:
The TRS P consists of the following rules:

APP(app(mapbt, f), app(app(app(branch, x), l), r)) → APP(app(mapbt, f), l)
APP(app(mapbt, f), app(app(app(branch, x), l), r)) → APP(app(mapbt, f), r)

The TRS R consists of the following rules:

app(app(mapbt, f), app(leaf, x)) → app(leaf, app(f, x))
app(app(mapbt, f), app(app(app(branch, x), l), r)) → app(app(app(branch, app(f, x)), app(app(mapbt, f), l)), app(app(mapbt, f), r))

The set Q consists of the following terms:

app(app(mapbt, x0), app(leaf, x1))
app(app(mapbt, x0), app(app(app(branch, x1), x2), x3))

We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [13]. Here, we combined the reduction pair processor with the A-transformation [14] which results in the following intermediate Q-DP Problem.
Q DP problem:
The TRS P consists of the following rules:

MAPBT(f, branch(x, l, r)) → MAPBT(f, l)
MAPBT(f, branch(x, l, r)) → MAPBT(f, r)

R is empty.
The set Q consists of the following terms:

mapbt(x0, leaf(x1))
mapbt(x0, branch(x1, x2, x3))

We have to consider all minimal (P,Q,R)-chains.


The following pairs can be oriented strictly and are deleted.


APP(app(mapbt, f), app(app(app(branch, x), l), r)) → APP(app(mapbt, f), l)
APP(app(mapbt, f), app(app(app(branch, x), l), r)) → APP(app(mapbt, f), r)
The remaining pairs can at least be oriented weakly.
none
Used ordering: Combined order from the following AFS and order.
MAPBT(x1, x2)  =  MAPBT(x1, x2)
branch(x1, x2, x3)  =  branch(x1, x2, x3)

Lexicographic path order with status [19].
Precedence:
branch3 > MAPBT2

Status:
MAPBT2: [1,2]
branch3: multiset

The following usable rules [14] were oriented: none



↳ QTRS
  ↳ Overlay + Local Confluence
    ↳ QTRS
      ↳ DependencyPairsProof
        ↳ QDP
          ↳ EdgeDeletionProof
            ↳ QDP
              ↳ DependencyGraphProof
                ↳ QDP
                  ↳ QDPOrderProof
                    ↳ QDP
                      ↳ QDPOrderProof
QDP
                          ↳ PisEmptyProof

Q DP problem:
P is empty.
The TRS R consists of the following rules:

app(app(mapbt, f), app(leaf, x)) → app(leaf, app(f, x))
app(app(mapbt, f), app(app(app(branch, x), l), r)) → app(app(app(branch, app(f, x)), app(app(mapbt, f), l)), app(app(mapbt, f), r))

The set Q consists of the following terms:

app(app(mapbt, x0), app(leaf, x1))
app(app(mapbt, x0), app(app(app(branch, x1), x2), x3))

We have to consider all minimal (P,Q,R)-chains.
The TRS P is empty. Hence, there is no (P,Q,R) chain.